package com.xxchat.entity.enums;


public enum ResponseCodeEnum {
    CODE_200(200, "请求成功"),
    CODE_401(401, "未授权"),
    CODE_404(404, "请求地址不存在"),
    CODE_600(600, "请求参数错误"),
    CODE_601(601, "信息已经存在"),
    CODE_500(500, "服务器返回错误，请联系管理员"),
    CODE_501(501, "当前版本必须大于历史版本"),
    CODE_502(502, "外部链接不能为空"),
    CODE_503(503, "请上传版本文件"),
    CODE_504(504, "上传文件失败"),
    CODE_505(505, "文件不存在"),
    CODE_701(701, "对方已将你拉黑"),
    CODE_702(702, "您不是对方的好友"),
    CODE_703(703, "您已不在群聊中"),
    CODE_801(801, "群组成员已满"),
    CODE_901(901, "用户名不能为空");

    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
